<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>分类列表</title>
	<link rel="icon" href="/Public/imageslogo.ico">
	<link rel="stylesheet" href="/Public/css/categoryheader.css">
	<link rel="stylesheet" href="/Public/css/categorylist.css">
</head>
<body>
<div class="header">
		<div class="container">
			<div class="header-l">
				<a href="#"><img src="/Public/images/logo2.png"></a>
			</div>
			<div class="header-r">
				<ul>
					<li><a href="#">消息</a></li>
				</ul>
				<div class="status">
					<a href="">登录</a>|<a href="">注册</a>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="functionlist">
		<div class="container">
			<div class="f-l">
				<h4>分类管理</h4>
				<ul>
					<li><a href="<?php echo U('categoryList');?>">所有分类</a></li>
					<li><a href="<?php echo U('addCategory');?>">添加分类</a></li>
					<li><a href="<?php echo U('categoryUpdateCenter');?>">修改分类信息</a></li>
					<li><a href="<?php echo U('downCategory');?>">下架分类</a></li>
				</ul>
				<h4>属性管理</h4>
				<ul>
					<li><a href="">所有属性</a></li>
					<li><a href="">添加属性</a></li>
					<li><a href="">修改属性信息</a></li>
				</ul>
				<h4>商品管理</h4>
				<ul>
					<li><a href="">商品列表</a></li>
					<li><a href="">添加商品</a></li>
					<li><a href="">修改商品信息</a></li>
					<li><a href="">下架商品</a></li>
					<li><a href="">商品属性管理</a></li>
				</ul>
			</div>
			<div class="f-r">
				<div class="f-r-h">
					分类列表
				</div>
				<div class="categorylist">
					<table>
						<tr>
							<th>分类编号</th>
							<th>分类名称</th>
							<th>父类编号</th>
							<th class="c-d">分类描述</th>
							<th>分类排序</th>
							<th>是否上架(0不上架,1上架)</th>
							<th>修改</th>
						</tr>
						<?php if(is_array($categoryList)): $i = 0; $__LIST__ = $categoryList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
								<td><a href="?parentid=<?php echo ($vo["id"]); ?>"><?php echo ($vo["id"]); ?></a></td>
								<td><?php echo ($vo["name"]); ?></td>
								<td><?php echo ($vo["parent_id"]); ?></td>
								<td><?php echo ($vo["category_describe"]); ?></td>
								<td><?php echo ($vo["sort"]); ?></td>
								<td><?php echo ($vo["active"]); ?></td>
								<td>
									<a href="<?php echo ($link); ?>?id=<?php echo ($vo["id"]); ?>"><img src="/Public/images/category.jpg"></a>
									<a href="<?php echo ($delete); ?>?id=<?php echo ($vo["id"]); ?>" onclick="return confirm('确认删除编号为<?php echo ($vo["id"]); ?>分类?');"><img src="/Public/images/delete.jpg"></a>
								</td>
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>
					</table>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
	<!-- 分割线 -->
	<div class="cutline">
		<div class="container">
		</div>
	</div>
	<!--  footer -->
	<div class="footer">
		<div class="container">
			<p>Copyright © 2004-2017  yijia.com 版权所有  |  消费者维权热线：  经营证照</p>
		</div>
	</div>
</body>
</html>